/* 基础样式补充 */
pre {
  overflow-x: auto;
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

/* 页面主体样式 */
.file-web1-container {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #111827, #1f2937);
  color: #111827;
  transition-colors: duration-300;
}

.file-web1-container.dark {
  background-color: #111827;
  color: #f9fafb;
}

/* 头部导航 */
.header {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  space-x: 0.5rem;
}

.header-icons {
  display: flex;
  align-items: center;
  space-x: 1rem;
}

.icon-button {
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: #1d4ed8;
}

/* 主内容区 */
.main-content {
  padding: 2rem 1rem;
}

.level-info {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.level-info.dark {
  background-color: #1f2937;
}

.level-icon-container {
  background-color: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.level-icon-container.dark {
  background-color: #1e3a8a;
  color: #bfdbfe;
}

.level-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.level-description {
  color: #374151;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.level-description.dark {
  color: #d1d5db;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.tag-file-upload {
  background-color: #fef3c7;
  color: #92400e;
}

.tag-file-upload.dark {
  background-color: #78350f;
  color: #fde68a;
}

.tag-front-bypass {
  background-color: #fee2e2;
  color: #991b1b;
}

.tag-front-bypass.dark {
  background-color: #7f1d1d;
  color: #fecaca;
}

.tag-mime-bypass {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.tag-mime-bypass.dark {
  background-color: #5b21b6;
  color: #ddd6fe;
}

/* 模拟网站界面 */
.website-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.website-container.dark {
  background-color: #1f2937;
}

.website-header {
  background-color: #1f2937;
  color: white;
  padding: 1rem;
}

.window-controls {
  display: flex;
  align-items: center;
}

.control-buttons {
  display: flex;
  space-x: 0.5rem;
  margin-right: 1rem;
}

.control-button {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}

.control-button.red { background-color: #ef4444; }
.control-button.yellow { background-color: #eab308; }
.control-button.green { background-color: #22c55e; }

.website-url {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #9ca3af;
}

.website-content {
  padding: 1.5rem;
}

.content-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label.dark {
  color: #d1d5db;
}

.file-input-container {
  display: flex;
  align-items: center;
}

.file-input {
  margin-right: 1rem;
}

.file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.file-input::file-selector-button:hover {
  background-color: #dbeafe;
}

.file-input.dark::file-selector-button {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.submit-button {
  margin-left: 0.5rem;
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #1d4ed8;
}

.file-hint {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.file-hint.dark {
  color: #9ca3af;
}

/* 反馈消息 */
.feedback-container {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.feedback-container.success {
  background-color: #dcfce7;
  color: #166534;
}

.feedback-container.success.dark {
  background-color: #14532d;
  color: #bbf7d0;
}

.feedback-container.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.feedback-container.error.dark {
  background-color: #7f1d1d;
  color: #fecaca;
}

.feedback-content {
  display: flex;
  align-items: flex-start;
}

.feedback-text {
  margin-left: 0.5rem;
}

.feedback-title {
  font-weight: 700;
}

.feedback-message {
  margin-top: 0.25rem;
}

.feedback-path {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
}

.feedback-flag {
  font-weight: 700;
  color: #9333ea;
  margin-top: 0.5rem;
}

.feedback-flag.dark {
  color: #c084fc;
}

/* 当前头像 */
.avatar-section {
  margin-bottom: 1.5rem;
}

.avatar-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.avatar-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 10rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-container.dark {
  border-color: #374151;
}

.current-img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* 攻击提示 */
.attack-hints {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.attack-hints.dark {
  background-color: #1f2937;
}

.hints-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hints-icon {
  color: #eab308;
  margin-right: 0.5rem;
}

.hints-list {
  display: flex;
  flex-direction: column;
  space-y: 0.75rem;
  color: #374151;
}

.hints-list.dark {
  color: #d1d5db;
}

.hint-item {
  display: flex;
  align-items: flex-start;
}

.hint-icon {
  color: #2563eb;
  margin-top: 0.25rem;
  margin-right: 0.5rem;
}

/* 页脚 */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
}

/* 帮助模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 32rem;
  padding: 1.5rem;
}

.modal-content.dark {
  background-color: #1f2937;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.75rem;
}

.modal-close {
  color: #6b7280;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #374151;
}

.modal-close.dark:hover {
  color: #d1d5db;
}

.modal-body {
  color: #374151;
  display: flex;
  flex-direction: column;
  space-y: 1rem;
}

.modal-body.dark {
  color: #d1d5db;
}

.modal-button {
  margin-top: 1.5rem;
  background-color: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.modal-button:hover {
  background-color: #1d4ed8;
}

/* 响应式网格布局 */
.grid-container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .main-content {
    padding: 2rem;
  }
  
  .header-content {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0.75rem 1rem;
  }
  
  .level-info,
  .website-container,
  .attack-hints {
    padding: 1.5rem;
  }
}